package com.ourhealth.mapper;

import com.ourhealth.pojo.Member;
import org.apache.ibatis.annotations.Param;

public interface MemberMapper {
    /**
     * 根据电话号码判断是否有此会员
     * @param telephone
     * @return
     */
    Integer isMemberByPhone(@Param("telephone") String telephone);

    /**
     * 添加会员
     * @param member
     */
    void add(@Param("member") Member member);

    Member getMemberById(@Param("memberId") Integer memberId);
}
